package com.easysoft.framework.enterprise.mapper;

import com.easysoft.framework.beans.Page;
import com.easysoft.framework.enterprise.model.SysEnterprise;
import com.easysoft.framework.enterprise.model.SysEnterpriseQuery;
import com.easysoft.framework.enterprise.model.SysEnterpriseView;
import com.easysoft.framework.stereotype.MyBatisRepository;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by try on 2017/8/22.
 */
@MyBatisRepository("mapper.SysEnterpriseMapperExtd")
public interface SysEnterpriseMapperExtd extends SysEnterpriseMapper {

    public int  selectCountAllSysEnterprise(@Param("query") SysEnterpriseQuery query);

    public List<SysEnterpriseView>  selectSysEnterpriseByPage(@Param("page") Page page, @Param("query") SysEnterpriseQuery query);

    List<SysEnterpriseView> selectAllSysEnterprise();

    List<Map<String,String>> selectSysEnterprise(@Param("status") int status);
}
